package com.alks.function.data.request.biocontrol.webwork;

import com.alks.entity.data.page.PageParam;
import com.alks.entity.deserializer.LocalDateTimeDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class ScheduleCutLotRequest extends PageParam {

    private String companyId;

    @ApiModelProperty(value = "客户")
    private String brand;

    @ApiModelProperty(value = "指令")
    private String lotNo;

    @ApiModelProperty(value = "型体")
    private String style;

    @ApiModelProperty(value = "楦头")
    private String lastNo;

    @ApiModelProperty(value = "成型线")
    private String lastLine;

    @ApiModelProperty(value = "选择生产线(已排进度用)")
    private List<String> lineList;

    @JsonDeserialize(using = LocalDateTimeDeserialize.class)
    @ApiModelProperty(value = "开始日期")
    private LocalDateTime beginDate;

    @JsonDeserialize(using = LocalDateTimeDeserialize.class)
    @ApiModelProperty(value = "结束日期")
    private LocalDateTime endDate;

    @ApiModelProperty(value = "指令类型(0.全部未完工1.待排指令,3.交期延误,4.进度门槛延误)")
    private Integer lotType;

    @ApiModelProperty(value = "日期比较类型：0.忽略日期，1.依成型进度门槛计划上线日，2.依成型进度门槛需求完成日期，3.依客人交期门槛需完成日期")
    private Integer dateType;

    @ApiModelProperty(value = "库存情况(1.全部 2.面材配套OK )")
    private Integer stockFlag;

    @ApiModelProperty(value = "排序字段(如果没选，默认（依成型进度门槛完成日期，升序）)")
    private String ordField;

    @ApiModelProperty(value = "排序方式(0.倒序，1.正序)")
    private Integer ordType;

}
